import {add} from './add.js';

const p = document.createElement('p');
document.body.appendChild(p);
p.innerHTML = `1+2=${add(1,2)}`;

// 导入css和less
import "./css/index.css";
import "./less/index.less";

// 导入图片
import imgObj from './assets/1.gif';
const img = document.createElement('img');
document.body.appendChild(img);
img.src = imgObj;

// 导入字体图标
import "./assets/fonts/iconfont.css"
let i = document.createElement("i")
i.className = "iconfont icon-qq"
document.body.appendChild(i)